<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Staticpage_Model extends CI_Model
{
    protected $_lang = '';
	function __construct() {
        parent::__construct();
    }
    public function initialise($lang)
    {
        if($lang!=''&&$lang!='vn')
            $this->_lang = '_'.$lang;
        else
            $this->_lang = '';
    }
   /*
     * @author : Tran Thi Kim Que
     * @method : get static from alias
     * @param  : 
     * @date   : 12/11/2012
     * @modify :
     */
    function getStaticByAlias($alias){
        $this->db->where('bl_active',1);
        $this->db->where('static_alias',$alias);
        return $this->db->get('static_content')->row();
    }
    
    
	
	
	
}